﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SocialIn.Biz;

namespace SocialIn.Web.Members
{
    public partial class ValidationCheck : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string result = "-1"; // - 1 에러, 0 - 정상(사용가), 1 - 있음(불사용)

            string userid = Request.Form["userid"];
            if (!string.IsNullOrEmpty(userid))
            {
                Join j = new Join();
                if (j.CheckUserID(userid))
                    result = "0";
                else
                    result = "1";
            }

            Response.Write(result);
            Response.End();
        }
    }
}